package com.company.service;

import org.apache.servicecomb.provider.pojo.RpcSchema;
import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RpcSchema(schemaId = "scRpc")
@RestSchema(schemaId = "scRest")
@RequestMapping("/")
public class ServiceCombRpcRest {
    public String serviceCombRpc(String input){
        System.out.println("welcome to serviceCombRpc!!");
        return "welcome to serviceCombRpc!! "+input;
    }

    @GetMapping("/restService")
    public String serviceCombRest(String input){
        System.out.println("welcome to serviceCombRest!!");
        return "welcome to serviceCombRest!! "+input;
    }

    @GetMapping("/rpcRestService")
    public String serviceCombRpcRest(String input){
        System.out.println("welcome to serviceCombRpcRest!!");
        return "welcome to serviceCombRpcRest!! "+input;
    }
}
